package com.coco.group.service.impl;

import com.coco.group.mapper.GroupBuyItemMapper;
import com.coco.group.service.GroupBuyItemService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author minicoco
 * @version 1.0
 * @date 2021/8/1 19:43
 */
@Slf4j
@Service
public class GroupBuyItemServiceImpl implements GroupBuyItemService {

    @Autowired
    private GroupBuyItemMapper itemMapper;


    @Override
    public void updateItemStock(Long id, int num) {
        itemMapper.updateStock(id,num);
    }
}
